package com.small.nacos.config.server.model.event;

import com.small.nacos.common.notify.Event;

public class ConfigDataChangeEvent extends Event {

    /**
     * 命名空间
     */
    private String tenant;

    /**
     * 分组
     */
    private String group;

    /**
     * 配置文件id
     */
    private String dataId;

    /**
     * 最后更新时间
     */
    private final long lastModifiedTs;

    public ConfigDataChangeEvent(String dataId, String group, String tenant, long gmtModified) {
        this.dataId = dataId;
        this.group = group;
        this.tenant = tenant;
        this.lastModifiedTs = gmtModified;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public long getLastModifiedTs() {
        return lastModifiedTs;
    }
}
